mkdir protocol_engine
echo "begin to create installation package..."
echo "coping so file and pemd..."
cp ../lib/aarch64/lib*  ./protocol_engine
cp ../lib/aarch64/mosquitto_dynamic_security.so ./protocol_engine
cp -r ../build/bin ./protocol_engine
cp -r ../build/lib ./protocol_engine
echo "coping intall shell and config file ..."
cp ./bc ./protocol_engine
cp ./engineinstall.sh  ./protocol_engine
cp ./pemd.conf ./protocol_engine
cp ./protocol_engine.service ./protocol_engine
cp ./settings.conf  ./protocol_engine
echo "create tar file ..."
tar -cvf ../build/protocol_engine.tar ./protocol_engine
rm -rf ./protocol_engine
echo "create intallation package finished."
